<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ page isErrorPage="true" %>

<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>

<jsp:useBean id="errores" scope="session" class="java.util.ArrayList" />
<html>
<head><title>.:: P&aacute;gina de Mensajes ::.</title></head>
<style>
	body {font-style:normal;font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;}
	h1 {font-size:16pt;color:Navy;}
	a {color:Navy;}
	.msg {
		font-weight : bold;
		font-size:12pt;
		color:Black;
		background-image : url(/a/imagenes/msg/info.gif);
		background-repeat : no-repeat;
		background-position : left;
		padding-left : 50px;
		height : 50px;
		padding-top : 10px; 
	}
	.msg2 {
		font-weight : bold;
		font-size:12pt;
		color:Black;
	}
	.error {font-style:bold;font-size:12pt;color:Blue;
	  text-indent: 50px;
		text-align : justify;
	}
	.soluc {font-size:12pt;}
	.cuerpo {
	  border : 1px solid Blue;
	  padding : 10px 10px 10px 10px;
	}
	.form-button {border-color:#69C;border-style:solid;border-width:1px;cursor:hand}
</style>
<script language="JavaScript1.2">
function retornar(){
   /* if (history.length>0){
      document.write("<div align='LEFT'><input class='form-button' type='button' value='Anterior' onclick='parent.history.back()'></div>");
   } */
}
</script>  
<body class="tundra">
	<div class="cuerpo">
		<div align="left" class="msg">La aplicaci&oacute;n ha retornado los siguientes mensajes :</div>
		<table>
		<c:forEach var="error" items="${errores}">
			<tr>
		    <c:forEach items="${error}" var="entry">
				<c:if test="${entry.key=='codigo'}">
					<td>${entry.value} : </td>
				</c:if>  
				<c:if test="${entry.key=='mensaje'}">
					<td>${entry.value}</td>
				</c:if>  
		    </c:forEach>
		    </tr>
		</c:forEach>
		</table>
		<script language="JavaScript1.2" type="text/javascript">
		retornar();
		</script>
	</div>
</body>
</html>